﻿<%@ Page Language="C#" MasterPageFile="~/paginaPrincipala.Master" AutoEventWireup="true"
    CodeBehind="onlineContentJS.aspx.cs" Inherits="RSSReader.pageswithContent.OnlineContentJS" %>

<asp:Content ID="onlineArticles" ContentPlaceHolderID="mainContent" runat="server">
    <script src="/Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="/resources/javascript/TestWebMethod2.js" type="text/javascript"></script>
    <script src="/resources/javascript/TestWebMethod.js" type="text/javascript"></script>
    <script src="/resources/javascript/calendar.js" type="text/javascript"></script>
    <script src="/resources/javascript/onlineContentJS.js" type="text/javascript"></script>
    <asp:ScriptManager ID="ScriptManager2" runat="server" EnablePageMethods="True">
    </asp:ScriptManager>
    <div id="articlePager">
        Pager<br />
    </div>
    <div id="articlePagerDetail">
        <asp:Label ID="labelPageNumber" runat="server" Text="Nr pag:"></asp:Label>
        <asp:TextBox ID="textBoxPageNumber" runat="server" ClientIDMode="Static"></asp:TextBox>
        <asp:Label ID="labelPageSize" runat="server" Text="Nr art/pag: "></asp:Label>
        <asp:TextBox ID="textBoxPageSize" runat="server" ClientIDMode="Static"></asp:TextBox>
    </div>
    <div id="articleFilters">
        Filters
    </div>
    <div id="articleFiltersDetail" class="articlesTableHead">
        <table>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Label ID="labelCategory" runat="server" Text="Category: "></asp:Label>
                    <br />
                    <asp:TextBox ID="textBoxCategoryFilter" runat="server" ClientIDMode="Static"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="labelTitleFilter" runat="server" Text="Title: "></asp:Label>
                    <asp:Label ID="labelDescriptionFilter" runat="server" Text="Desc: "></asp:Label>
                    <br />
                    <asp:TextBox ID="textBoxTitleFilter" runat="server" ClientIDMode="Static"></asp:TextBox>
                    <asp:TextBox ID="textBoxDescriptionFilter" runat="server" ClientIDMode="Static"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="labelDateFilter" runat="server" Text="date: "></asp:Label>
                    <br />
                    <input type="button" onclick='fPopCalendar("textBoxDateFilter")' style="height: 22px;
                        width: 26px" />
                    <!--calendar icon available at: img="../resources/customStyles/images/calendar-icon.jpg" -->
                    <asp:TextBox ID="textBoxDateFilter" runat="server" ClientIDMode="Static" Width="96px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
    <input type="button" value="Get one page" onclick="GetPageofArticlesByCriteria(document.getElementById('<%=textBoxPageNumber.ClientID%>').value,
                                                document.getElementById('<%=textBoxPageSize.ClientID%>').value,
                                                document.getElementById('<%=textBoxCategoryFilter.ClientID%>').value,
                                                document.getElementById('<%=textBoxTitleFilter.ClientID%>').value,
                                                document.getElementById('<%=textBoxDescriptionFilter.ClientID%>').value,
                                                document.getElementById('<%=textBoxDateFilter.ClientID%>').value)">
    </input>
    <div id="resultList">
    </div>
</asp:Content>
